<!DOCTYPE html>
<html>

<head lang="en">
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<title>{{webtitle}}-爬虫数据监控系统</title>
	<link rel="stylesheet" href="static/css/bootstrap.min.css" />
	<link rel="stylesheet" href="static/css/bootstrap-theme.min.css" />
	<link rel="stylesheet" href="static/css/bootstrap-table.min.css" />
</head>

<body>
	<div class="container">
		<div id="toolbar" class="fixed-table-toolbar" style="white-space: nowrap;">
			<h2>{{webtitle}}-爬虫数据监控系统</h2>
			<form action="exportdata?collection={{collection}}&source={{source}}" id="exportanalysis" style="display:none;" method="post">
				<input type="hidden" name="collection" value="{{collection}}" />
			</form>
			<button id="export">导出数据</button>&nbsp;&nbsp;&nbsp;&nbsp;<span>合计记录数量：{{totalCount}},本页最多显示200条</span>&nbsp;&nbsp;<a href="javascript:history.back();">返回</a>
		</div>
		<div style="margin-top:15px;">
			<table id="table" data-toggle="table" data-click-to-select="true" data-row-style="rowStyle" data-height="600">
				<thead>
					<tr>
						<th>名称</th>
						<th>日期</th>
						<th>来源</th>
						<th>数据库</th>
					</tr>
				</thead>
				{% for item in items %}
				<tr>
					<td>{{item.title}}</td>
					<td>{{item["_create_time"]}}</td>
					<td>{{item["source"]}}</td>
					<td>{{item["_collection"]}}</td>
				</tr>
				{% endfor %}
			</table>
		</div>
	</div>
	<div style="width: 200px;margin: 0 auto;">&copy;用友审计 2016</div>
	<script src="static/js/jquery-2.1.3.min.js"></script>
	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/bootstrap-table.min.js"></script>
	<script src="static/js/bootstrap-table-zh-CN.min.js"></script>
	<script>
		$("#export").click(function () {
			if (!confirm("您要导出当前数据吗？")) return;
			$("#exportanalysis").submit();
		});
	</script>
</body>

</html>